import request from '@/utils/request'

// 添加时查询用户信息
export const getUserPageApi = (params) => request.get(`/user_info/page?baseId=${params.baseId}&cuurent=${params.current}&pageSize=${params.pageSize}`)
// 用户信息查询
export const delUserByIdApi = (id) => request.delete(`/user_info/removeByIds?ids=${id}`)
// 用户添加
export const addUserApi = (params) => request.post('/user_info/add', params)
// 用户下拉框
export const getRoleInfoApi = () => request.get('/role_info/list')
// 用户登录
export const login = (params) => request.post('/user_info/login', params)
// 用户编辑
export const updataUserApi = (params) => request.patch('/user_info/updateById', params)
